import os

SECRET_KEY = os.urandom(24)

DEBUG = True

HOSTNAME = '127.0.0.1'
PORT = '3306'
DATABASE = 'bbs'
USERNAME = 'root'
PASSWORD = '123456'
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)

SQLALCHEMY_DATABASE_URI = DB_URI

SQLALCHEMY_TRACK_MODIFICATIONS = False

CMS_USER_ID='CMS_USERID'

#MAIL_USE_TLS 端口号:587
#MIAL_USE_SSL, 端口号465
#QQ 邮箱不支持非加密方式发送邮件
# 发送者邮箱的服务器地址
MAIL_SERVER = "smtp.qq.com"
MAIL_PORT = '587'
MAIL_USE_TLS = True
# MAIL_USE_SSL
MAIL_USERNAME = "765143711@qq.com"
MAIL_PASSWORD = "bfxdujnmrsjgbbdj"
MAIL_DEFAULT_SENDER = "765143711@qq.com"
